﻿/* 
	Deletes All the Subtools from the selected tool (This checks to make sure the button exists before pressing.)
*/

/////////////////////////////////////////
// User Changeable Options ///////////////
/////////////////////////////////////////

/////////////////////////////////////////
/////////////////////////////////////////

[RoutineDef,DeleteAll,

	[Loop,1000,
		[If,[IExists,Tool:SubTool:Del All],
			// Button has been found
			[IKeyPress,'2',[IPress,Tool:SubTool:Del All]]
			[LoopExit]
		,]
	]
	
]

[IButton,???,"Deletes all the Subtools from the selected tool. (Use this button for Custom UI)",
	[IShowActions,0]
	[IConfig,4.8]
	//[IFreeze,
		[RoutineCall,DeleteAll]
	//]
,,1/2,,,]